
import { BusinessEnum } from '@/enum/ApiEnum'
import type { RendererElement, RendererNode } from 'vue'

/**
 * 按钮配置
 */
export default interface PeaceActionBtn {
  name: string
  type?: string
  size?: string
  businessEnum?: BusinessEnum
  api?: (input?: object) => Promise<any>
  apiParams?: object
  // 自定义渲染
  peaceRender?: (input: object) => VNode<RendererNode, RendererElement, { [key: string]: any }>
}
